//
//  TipsManager.h
//  iOSLib
//
//  Created by gaofeng on 15/11/24.
//  Copyright © 2015年 zyb. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

// 各个业务线不要再加类型了，请传一个model进来就好了
typedef NS_ENUM(NSInteger, ZYBViewTipsType) {
    ZYBViewTipsTypeNetworkError = 0,//无网
    ZYBViewTipsTypeLoadError,//加载出错
    ZYBViewTipsTypeNoMessage,//没内容
    ZYBViewTipsTypeNoMessageNoTips,//没内容没文字提示
    ZYBViewTipsTypeNoMessageForFavoriteComposition,//素材本为空
    ZYBViewTipsTypeQuestionDeleted,//
    ZYBViewTipsTypeArticleDeleted,
    ZYBViewTipsTypeQuestionSystemDeleted,
    ZYBViewTipsTypeArticleSystemDeleted,
    ZYBViewTipsTypeNoCompositionResult,//作文未搜到结果
    ZYBViewTipsTypeNoErrorResult,//错题本空空的
    ZYBViewTipsTypeNoTeachers,//老师列表是空的
    ZYBViewTipsTypeNoFollowedTeachers,//没有关注的老师
    ZYBViewTipsTypeNoCoupon,//没有优惠券
    ZYBViewTipsTypeDicSearchNoResult,
    ZYBViewTipsTypeNoPacks,//答疑无套餐
    ZYBViewTipsTypeNoOneOnOneCourses,//1V1无课
    ZYBViewTipsTypeHighLadderNoFriend,
    ZYBViewTipsTypeENzuowenevallistNoContent, // 用户英语作文批改历史记录 无内容
    ZYBViewTipsTypeHighLadderSignalSearchNoResult,
    ZYBViewTipsTypeFeedArticleDelete, // feed文章不存在
    ZYBViewTipsTypeDefault
};

#define VIEW_TIP_VIEW_TAG               8501

#define VIEW_TOAST_TITLE_VIEW_TAG       8502
#define VIEW_TOAST_ACTIVITY_VIEW_TAG    8503

#define VIEW_TOAST_LOADING_MBPROGRESS_TAG       8504

static NSString *TipsTableListRefreshTextPull                 =    @"上拉加载更多";
static NSString *TipsTableListRefreshTextPull_down            =    @"下拉加载更多";
static NSString *TipsTableListRefreshTextReleaseLoadingMore   =    @"松开加载更多";
static NSString *TipsTableListRefreshTextReleaseLoadingNoMore =    @"木有更多了";
static NSString *TipsTableListRefreshPullDown                 =    @"下拉更新提问";
static NSString *TipsTableListRefreshTextNomore               =    @"没有更多内容啦";
static NSString *TipsTableListRefreshTextRelease              =    @"松开即可加载";
static NSString *TipsTableListRefreshTextUpdate               =    @"下拉可以刷新";
static NSString *TipsTableListRefreshTextUpdate_UP            =    @"上拉更新页面";
static NSString *TipsTableListRefreshTextRefresh              =    @"松开可以刷新";
static NSString *TipsTableListRefreshTextLoading              =    @"加载中...";
static NSString *TipsTableListRefreshTextTime                 =    @"最后一次更新";

static NSString *kNetworkNotReachable                        =    @"咦，没有网络了";
static NSString *kNetRequireFailed                           =    @"网络请求失败!";
static NSString *kNetworkLoadingHardly                       =    @"努力加载中...";
static NSString *kNoCache                                    =    @"没有缓存";
static NSString *kForSecurity_NoQQ_NoEmail                   =    @"为了您的信息安全，请不要留下个人邮箱或QQ";
static NSString *kQuestionIsUploading                        =    @"问题提交中...";
static NSString *kQuanIsUploading                            =    @"帖子发送中...";
static NSString *kLoadFailed                                 =    @"加载失败";
@interface TipsTextConfigureModel : NSObject
@property (nonatomic, strong) UIFont  *font;
@property (nonatomic, strong) UIColor *textColor;
@property (nonatomic, strong) UIColor *backgroundColor;
@property (nonatomic, strong) UIColor *boaderColor;
@property (nonatomic, assign) CGFloat boaderWidth;
@property (nonatomic, assign) CGSize  buttonSize;
@end
@interface TipsTextModel : NSObject

@property (nonatomic, strong) id title;//NSString or attributedString

@property (nonatomic, strong) UIImage *image;

@property (nonatomic, strong) NSString *imageName;

@property (nonatomic, assign) ZYBViewTipsType type;

@property (nonatomic, strong) NSString *tipButtonTitle;

@property (nonatomic, copy) void(^tipButtonBlock)(void);

@property (nonatomic, strong) TipsTextConfigureModel *titleConfigure;///<

@property (nonatomic, strong) TipsTextConfigureModel *tipButtonConfigure;

@property (nonatomic, strong) TipsTextConfigureModel *tipsViewConfigure;
@end

@interface TipsTextManager : NSObject

+ (TipsTextModel *)tipsModelForType:(ZYBViewTipsType)tipsType;

@end
